import { get, post, del } from '@/utils/request'

// 获取所有操作日志
export function getAllOperationLogs() {
  return get('/operationLog/getAll')
}

// 分页获取操作日志
export function getOperationLogsByPage(params) {
  return get('/operationLog/getByPage', params)
}

// 根据ID获取操作日志
export function getOperationLogById(id) {
  return get(`/operationLog/getById/${id}`)
}

// 删除操作日志
export function deleteOperationLog(id) {
  return del(`/operationLog/delete/${id}`)
}

// 批量删除操作日志
export function batchDeleteOperationLogs(ids) {
  return post('/operationLog/batchDelete', ids)
}

// 清空所有日志
export function clearAllLogs() {
  return del('/operationLog/clearAll')
} 